package forms
import "LiquidMeasurement/lib"

type RoomManageForm struct {
	Id          	uint64
	Floor			uint8		`valid:"Required;Msg(楼层号不能为空)"`
	RoomNum			string		`valid:"Required;Msg(房间号不能为空)"`
}

func (form *RoomManageForm)CheckValid()(b bool,Errors []lib.ERROR)  {
	valid := lib.Validation{}
	b, err_msg := valid.Valid(form)
	return b,err_msg
}